#!/usr/bin/python

import time
import os
a = time.ctime()
b = os.getlogin()
try:
    input_info = input("please input something:")
    with open("aa.txt","a+") as f:
        f.write(input_info+"\n")
except Exception as e:
    with open("aa_log.txt","a+") as f2:
        f2.write(a+"\t")
        f2.write(b+"\t")
        f2.write(str(e)+"\n")
